FROM openjdk:11.0.10-jre-slim-buster
VOLUME /tmp
ADD zx-gateway-1.0.0.jar app.jar
ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
    && bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","-Dspring.profiles.active=prod","/app.jar"]
EXPOSE 8080
